<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>
<script type='text/javascript' src='<?php echo $this->_webroot('servtools/date/WdatePicker.js'); ?>'></script>

</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<style>
.tr_op {
    float: right;
}
.tr_op a {
    background: url("<?php echo $this->_webroot('/user/images/btn.gif'); ?>") no-repeat scroll center center transparent;
    display: block;
    float: left;
    height: 27px;
    line-height: 27px;
    margin-right: 3px;
    text-align: center;
    width: 95px;
}

.tr_op a:hover {
    background: url("<?php echo $this->_webroot('/user/images/btn_hover.gif'); ?>") no-repeat scroll center center transparent;
    color: #FFFFFF;
}
</style>   
    <div class="main-right">
    	<!-- right_head_div -->

        <!-- right_head_div  end-->
        
        <!-- 查看某订单 -->
				<form action="<?php echo $this->_url('shopcount/index/?');?>" class="lookorder_form" method="get">
					时间段:<input class="Wdate" type="text" name="stime" id="stime" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $stime;?>" />到
					<input class="Wdate" type="text" name="etime" id="etime" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $etime;?>" />&nbsp;				
					<br/>
					<select name="state">
						<option value='' <?php if($state=="") {echo 'selected'; }?>>全部</option>
						<option value='1' <?php if($state=="1"){echo "selected";}?>>未确定</option>
						<option value='2' <?php if($state=="2"){echo "selected";}?>>已确定</option>
						<option value='3' <?php if($state=="3"){echo "selected";}?>>未支付</option>
						<option value='4' <?php if($state=="4"){echo "selected";}?>>已支付</option>
						<option value='5' <?php if($state=="5"){echo "selected";}?>>未发货</option>
						<option value='6' <?php if($state=="6"){echo "selected";}?>>已发货</option>
						<option value='7' <?php if($state=="7"){echo "selected";}?>>已完成</option>
						<option value='8' <?php if($state=="8"){echo "selected";}?>>已收款未发货</option>
						<option value='9' <?php if($state=="9"){echo "selected";}?>>未评价</option>
					</select>&nbsp;
					员工编号:<input type="input" value="<?php echo $salesman;?>" name="salesman" />&nbsp;
					客户用户名:<input type="input" value="<?php echo $cusname;?>" name="cusname" />&nbsp;
					
					<input type="submit" value="查看销量" class="look_order" />&nbsp;&nbsp;&nbsp;&nbsp;
				</form>			
        <!-- 查看某订单 end -->
        
        <!-- 提示信息 -->
        <div class="notice_div">
        	<p class="notice_p">爱搜货提醒您：请核对您发布的商品是否符合 最新商品发布规则 商品违规发布累计扣12分将做 店铺屏蔽12天。</p>
            <p>爱搜货最新通知：【掌柜必读】国务院开展侵权打假专项活动，卖家请及时自查！</p>
        
        </div>
        <!-- 提示信息 end -->
        
        <!-- 仓库中商品列表 -->
        <form method="post" action="" class="storage_goods_form">
        	<table class="goodslist_table">
            	<tr class="goodslist_tr1">
                    <td width="85">商品编号</td>
                    <td width="175">商品信息</td>
                    <td width="120">订单价格/数量</td>
                    <td width="90">状态</td>					
                    <td width="80">客户用户名</td>
                    <td width="70">业务员编号</td>
                    <td class="td_last1" width="50">总金额</td>
                </tr>

				<?php foreach($result['data'] as $v) { ?>
                <tr class="sep_row"><td colspan="8"></td></tr>
                <tr class="goodslist_tr3">
                	<td colspan="8" class="goodslist_td1">
                    	<input type="checkbox" class="input2"  />订单编号：<?php echo $v['payid']; ?>  时间：  <?php echo $v['add_time']; ?>                
                    </td>
                </tr>
                <tr class="sep_row"><td colspan="8"></td></tr>
                <tr class="goodslist_tr4">
                    <td><span class="item_number"><?php echo $v['goods_id']; ?></span></td>
                    <td><a href="<?php echo $this->_url('shop/productshow/'.$v['goods_id']);?>"  target="_blank" class="goods_small_img">
					        <img src="<?php echo $v['goods_thumb']; ?>" width="52" height="50"  onerror="this.src='<?php echo $this->_webroot('/user/images/nopic.gif'); ?>'"/>
						</a>
					    <span class="goods_name_span" style="height:100%;">
					        <a href="<?php echo $this->_url('shop/productshow/'.$v['goods_id']);?>" target="_blank"><?php echo $v['goods_name']; ?></a>
					        <a href="<?php echo $this->_url('shop/index/'.$v['shop_id']);?>" target="_blank" style="color:red;">[<?php echo $v['shop_name']; ?>]</a>							
						</span>
					</td>
                    <td><span class="goods_price">￥<?php echo $v['goods_price']; ?></span>/<?php echo $v['order_num']; ?></td>
                    <td><span class="pubDate">
						<?php  if($v['lock_flg']==1){
		            		echo "<span class='black'>此商品已被锁定</span><br />";
		            		if($v['order_status']==3) {
								echo "<span class='green'>已完成购买</span><br />";
							}
		            	}else{
							 	if($v['order_status']==0){
									echo "<span class='black'>该订单已删除</span><br />";
								}elseif($v['protect_status']==1){
										echo "<span class='red'>维权中</span><br /> ";
								}elseif($v['protect_status']==2){
										echo "<span class='red'>同意维权</span><br /> ";
								}elseif($v['protect_status']==3){
										echo "<span class='red'>维权结束</span><br /> ";
								}elseif($v['order_status']==3) {
									echo "<span class='green'>已完成购买</span><br />";
								} else {
									if($v['pay_status']==0) {
										echo "<span class='red'>待付款</span><br /> ";
									} elseif($v['pay_status']==2){
										echo "<span class='red'>待退款</span><br /> ";
									} elseif($v['pay_status']==3){
										echo "<span class='red'>已退款</span><br /> ";
									} elseif($v['pay_status']==4){
										echo "<span class='red'>退款成功</span><br /> ";
									}else {
										if($v['transport_status']) {
											echo "<span class='red'>已发货</span><br /> ";
										} else {
											echo "<span class='red'>待发货</span><br />";
										}
									}	
							    }
						}?>					
					</span></td>
                    <td><span class="pubDate"><?php echo $v['user_name']; ?></span></td>					
                    <td><span class="repertory"><?php echo $v['salesman_user_name']; ?></span></td>
                    <td>￥<?php echo $v['goods_price'] * $v['order_num']; ?></td>
                </tr>
				<?php } ?>
				
				
				
                <tr class="sep_row"><td colspan="8"></td></tr>
                
            </table>
        </form>
        <!-- 仓库中商品列表 end -->
        
        <!-- 页码 -->
    	<div class="pages_div">
        	<ul>			
				<li>共<?php echo $result['page']['total']; ?>条记录</li>
<li><a href="<?php echo $result['page']['head']; ?>">首页</a></li>
<li><a href="<?php echo $result['page']['prevPage']; ?>">&lt;</a></li>
<li><a href="<?php echo $result['page']['nextPage']; ?>">&gt;</a></li>
<li><a href="<?php echo $result['page']['foot']; ?>">尾页</a></li>
<li>当前第<?php echo $result['page']['current']['num']; ?>页/共<?php echo $result['page']['pageCount']; ?>页</li>			

            </ul>
        </div>        
        <!-- 页码 end -->
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>


</body>
</html>